package com.typhoon.spring_jdbctemplate.compare;

/**
 * 对比上下文(容器)
 * 
 * @author Typhoon
 * @date 2017-09-17 10:18 Sunday
 * @since V2.0
 */
public class CompareContext {
	/**
	 * 源数据
	 */
	private Object source;
	/**
	 * 目标数据
	 */
	private Object target;
	/**
	 * 对比规则
	 */
	private CompareRule rule;

	public CompareContext() {
	}

	public CompareContext(Object source, Object target) {
		this(source, target, null);
	}

	public CompareContext(Object source, Object target, CompareRule rule) {
		this.source = source;
		this.target = target;
		this.rule = rule;
	}

	public Object getSource() {
		return this.source;
	}

	public void setSource(Object source) {
		this.source = source;
	}

	public Object getTarget() {
		return this.target;
	}

	public void setTarget(Object target) {
		this.target = target;
	}

	public CompareRule getRule() {
		return this.rule;
	}

	public void setRule(CompareRule rule) {
		this.rule = rule;
	}
}
